//
//  ConsultationCollectionViewCell.swift
//  OnceNectar
//
//  Created by 法正磊 on 2018/1/31.
//  Copyright © 2018年 com.inwhoop. All rights reserved.
//

import UIKit

class ConsultationCollectionViewCell: UICollectionViewCell, BottomShadow, AddCornerUIRectCorner {

    @IBOutlet weak var titleLabel: UILabel!
    
    @IBOutlet weak var typeLabel: UIButton!
    @IBOutlet weak var showImageView: UIImageView!
    override func awakeFromNib() {
        super.awakeFromNib()
       
        // Initialization code
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        if self.layer.cornerRadius == 0 {
             setShadow(view: self, opacity: bottomShadowOpacity, size: bottomShadowOffset, color: UIColor.black, cornerradius: CORNERRADIUS)
        }
       
        if self.contentView.mask == nil {
            addCornerWithView(aView: self.contentView, aCorners: .allCorners, aSize: CGSize(width: CORNERRADIUS, height: CORNERRADIUS))
        }
    }
    
}
